package com.test.demos.dao;
import java.util.List;

import com.test.demos.po.Orders;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface OrdersDAO {
	//新增
	int saveOrders(Orders orders);
	int saveOrdersOracle(Orders orders);
	//批量添加

	int  saveOrdersAll (@Param("list") List<Orders> list);
	//删除by编号
	int deleteOrdersByBh(@Param("id") Integer id);
	//根据uid删除
	int deleteOrdersByUID(@Param("uid") String uid);
	//删除by条件
	int deleteOrdersByCondition(@Param("orders") Orders orders);
	//修改
	int updateOrders(Orders orders);
	//查询
	List<Orders> getOrdersPageByCondition(
		@Param("orders") Orders orders,
		@Param("start") int start,
		@Param("range") int range);

	List<Orders> getOrdersPageByConditionOrder(
		@Param("orders") Orders orders,
		@Param("start") int start,
		@Param("range") int range,
		@Param("orderStr") String orderStr);

	int countOrdersByCondition(@Param("orders") Orders orders);
	List<Orders> getOrdersByCondition(@Param("orders") Orders orders);
	Orders getOneOrders(@Param("bh") Integer bh);
	Orders getOneOrdersByUID(@Param("uid") String uid);

}
